package com.chen.product.service;

import com.chen.model.dto.h5.ProductSkuDto;
import com.chen.model.entity.product.ProductSku;
import com.chen.model.vo.h5.ProductItemVo;
import com.github.pagehelper.PageInfo;

/**
 * @author cgj
 * @date 4/14/25 7:52 PM
 */
public interface ProductService {
    /**
     *    * 分页条件查询商品SKU
     * @param pageNum
     * @param pageSize
     * @param productSkuDto
     * @return
     */
    PageInfo<ProductSku> selectByPageAndCondition(Integer pageNum, Integer pageSize, ProductSkuDto productSkuDto);

    /**
     * 根据skuID查询商品的详情
     * @param skuId
     * @return
     */
    ProductItemVo getItem(Long skuId);

    /**
     * 根据skuId,查询sku
     * @param skuId
     * @return
     */
    ProductSku getProductSkuBySkuId(Long skuId);
}
